home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Developer Essentials / DTS Sample Code / Macintosh Sample Code / SC.021.ModalList / ModalList.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-09-30  |  2.1 KB  |  70 lines  |  [TEXT/MPS ]

  1. /*
  2. #
  3. #    Apple Macintosh Developer Technical Support
  4. #
  5. #    ModalList : Simple Modal Dialog and List Manager Sample Application
  6. #
  7. #    ModalList.h
  8. #
  9. #    Copyright © 1989 Apple Computer, Inc.
  10. #    All rights reserved.
  11. #
  12. #    Versions:    
  13. #            1.00                     10/89
  14. #
  15. #    Components:
  16. #            ModalList.make            October 1, 1989
  17. #            ModalList.h                October 1, 1989
  18. #            ModalList.c                October 1, 1989
  19. #            ModalList.r                October 1, 1989
  20. #
  21. #    ModalList is an example application that demonstrates
  22. #    how to use the Dialog Manager and List Manager routines
  23. #    together. It is not a good example of a sample application
  24. #    but a great example of the use of lists in a dialog. The
  25. #    default LDEF is used to display a 2 dimensional list of strings.
  26. #    Each cell's string is initialized to represent it's position in the
  27. #    list. The user can change these strings and search for a particular
  28. #    setting. Once again this is not meant as an example application and
  29. #    there are some features that are documented in the source listing
  30. #    that you should pay close attention to inorder to understand how
  31. #    this example works.
  32. #
  33. */
  34.  
  35. #define cMinSize    32                /* application's minimum size (in K) */
  36. #define cPrefSize    32                /* application's preferred size (in K) */
  37.  
  38. /* kSysEnvironsVersion is passed to SysEnvirons to tell it which version of the
  39. ** SysEnvRec we understand.
  40. */
  41.  
  42. #define    cSysEnvironsVersion        1
  43.  
  44. /* the modal dialog window and item resource id's
  45. */
  46.  
  47. #define    cDLOGID                256            /* DLOG resource ID */
  48. #define    cOKOutlineItem        3            /* DITL ID for OK Outline item */
  49. #define    cListItem            4            /* DITL ID for List item */
  50.  
  51. #define    cNoNilHiliteItem    5            /* DITL IDs for check box items */
  52. #define    cUseSenseItem        6    
  53. #define    cNoRectItem            7
  54. #define    cNoExtendItem        8
  55. #define    cNoDisjointItem        9
  56. #define    cExtendDragItem        10
  57. #define    cOnlyOneItem        11
  58.  
  59. #define    cTextItem            12            /* DITL ID for text edit item */
  60. #define    cSetItem            13            /* DITL ID for misc buttons */
  61. #define    cFindItem            14
  62.  
  63. /* the list dimensions
  64. */
  65. #define    cListCols            16            /* cells */            
  66. #define    cListRows            16            /* cells */
  67. #define    cListCellWidth        96            /* pixels */
  68. #define    cListCellHeight        16            /* pixels */
  69.  
  70.